package com.example.util;

public class CurrentHolder {
    private static final ThreadLocal<Integer> CURRENT_HOLDER = new ThreadLocal<>();
    public static void setCurrentHolder(Integer value) {
        CURRENT_HOLDER.set(value);
    }
    public static Integer getCurrentHolder() {
        return CURRENT_HOLDER.get();
    }
    public static void removeCurrentHolder() {
        CURRENT_HOLDER.remove();
    }
}